package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.TitleInfo;

public interface TitleService {

	public abstract TitleInfo getTitleInfoById(Long id);

	public abstract int getTitleInfoCountByCriteria(DetachedCriteria query);

	public abstract List<TitleInfo> getTitleInfos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String createTitleCode();

	public abstract void saveTitleInfo(TitleInfo titleInfo);

	public abstract void updateTitleInfo(TitleInfo titleInfo);

	public abstract void removeTitleInfo(Long id);

	public abstract List<TitleInfo> getTitleInfos();
	
	public abstract List<TitleInfo> getTitleInfos(DetachedCriteria query);

}
